<?php

namespace App\Services;

use App\Common\Libs\Dispatch\Console;
use App\Console\Commands\Controller\LogSpiderCommand;
use App\Consts\GlobalConsoleConst;

/**
 * Class LogSpiderService
 * @package App\Services
 */
class LogSpiderService extends BaseService
{
    /**
     * 添加一键推荐日志
     * @param $loadData
     * @return \Illuminate\Foundation\Bus\PendingDispatch|bool
     */
    public function addByConsole($loadData)
    {
        Console::getInstance(LogSpiderCommand::class)->push($loadData, GlobalConsoleConst::LOG_SPIDER_ADD);

        return true;
    }

}
